@charset "UTF-8";
.bar {
  position: fixed;
  top: 20%;
  right: 20px;
  width: 30px;
  height: 120px;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  z-index: 999;
}

.bar .item {
  display: block;
  width: 30px;
  height: 30px;
  border-radius: 3px;
  background: #f4f4f4 url(../images/icon_bar.png) no-repeat;
  background-size: 100%;
  border: 1px solid #d6d6d6;
  box-sizing: border-box;
}

.bar .item::before {
  content: '购物车';
  display: none;
  width: 100%;
  height: 100%;
  background: red;
  color: #fff;
  padding: 5px;
  font-size: 10px;
  font-weight: 100;
}

.bar .item:nth-child(1) {
  background-position: 0 5px;
}

.bar .item:nth-child(1)::before {
  content: '去购物车';
}

.bar .item:nth-child(1):hover {
  text-decoration: none;
  border: none;
}

.bar .item:nth-child(1):hover::before {
  display: flex;
  align-items: center;
}

.bar .item:nth-child(1) .badge {
  width: 15px;
  height: 15px;
  font-size: 10px;
  text-align: center;
  position: absolute;
  top: -3px;
  right: -5px;
  border-radius: 50%;
  color: #fff;
  background: #c10000;
}

.bar .item:nth-child(2) {
  background-position: 0 -62px;
}

.bar .item:nth-child(2)::before {
  content: '后台管理';
}

.bar .item:nth-child(2):hover {
  text-decoration: none;
  border: none;
}

.bar .item:nth-child(2):hover::before {
  display: flex;
  align-items: center;
}

.bar .item:nth-child(3) {
  background-position: 0 -130px;
}

.bar .item:nth-child(3)::before {
  content: '个人中心';
}

.bar .item:nth-child(3):hover {
  text-decoration: none;
  border: none;
}

.bar .item:nth-child(3):hover::before {
  display: flex;
  align-items: center;
}

header {
  margin-bottom: 1px;
}

header .logo {
  display: block;
  width: 120px;
}

header .logo > img {
  width: 100%;
}

header .login {
  color: #000;
  font-size: 12px;
}

header .border {
  display: inline-block;
  background: #000;
  width: 1px;
  height: 15px;
  margin: 0 5px;
}

header .register {
  color: #000;
  font-size: 12px;
  margin-right: 5px;
}

header .input {
  width: 200px;
  height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-bottom: 1px solid #000;
}

header .input input::-webkit-input-placeholder {
  font-size: 12px;
}

header .input > input {
  width: 150px;
  height: 30px;
  border: none;
}

header .input .search {
  display: block;
  width: 20px;
  height: 20px;
  background: url(../images/index_search.png) no-repeat;
  background-size: 100%;
}

header .nav-user {
  display: block;
  margin: 0 10px;
  width: 20px;
  height: 20px;
  background: url(../images/index_user.png) no-repeat;
  background-size: 100%;
}

header .nav-code {
  display: block;
  width: 20px;
  height: 20px;
  margin: 0 10px;
  background: url(../images/index_code.png) no-repeat;
  background-size: 100%;
}

header .nav {
  display: flex;
}

header .nav .nav-item {
  display: block;
  padding: 16px;
  padding-bottom: 0;
  padding-top: 0;
}

header .nav .nav-item .nav-link {
  display: block;
  margin: 0;
  padding: 10px;
  color: #333;
  font-size: 13px;
  border: 2px solid transparent;
}

header .nav .nav-item .nav-link:hover {
  color: #a10000;
  border-bottom-color: #a10000;
}

header .nav .nav-item:nth-child(2) .sub-nav {
  display: none;
  width: 1340px;
  border-top: 1px solid #272727;
  position: absolute;
  top: 40px;
  left: -195px;
  padding-top: 20px;
  z-index: 999;
  background: #fff;
}

header .nav .nav-item:nth-child(2) .sub-nav > ul {
  text-align: center;
  margin: 0 auto;
  padding-bottom: 20px;
  width: 80%;
  display: flex;
  justify-content: space-between;
}

header .nav .nav-item:nth-child(2) .sub-nav > ul > li {
  list-style: none;
  width: 160px;
}

header .nav .nav-item:nth-child(2) .sub-nav > ul > li > img {
  width: 100%;
}

header .nav .nav-item:nth-child(2) .sub-nav > ul > li > span {
  font-size: 12px;
  color: #333;
}

header .nav .nav-item:nth-child(2) .sub-nav > ul .division {
  width: 1px;
  height: 200px;
  margin-top: 5px;
  background: #272727;
}

header .nav .nav-item:nth-child(2):hover .sub-nav {
  display: block;
}

footer {
  border: 1px solid #dbdbdb;
}

footer section > ul {
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 5px 0;
}

footer section > ul > li {
  display: flex;
  position: relative;
  height: 30px;
  justify-content: center;
  text-align: center;
  padding: 0 20px;
  border-right: 1px solid #ccc;
}

footer section > ul > li > a {
  display: block;
  width: 120px;
  height: 30px;
  font-size: 14px;
  line-height: 30px;
  color: #000;
}

footer section > ul > li > i {
  font-size: 14px;
  display: block;
  width: 30px;
  height: 30px;
  line-height: 30px;
  border: 1px solid red;
  border-radius: 50%;
  font-style: normal;
}

footer section > ul > li:last-child {
  border: none;
}

footer .footer {
  height: 50px;
  background: #000;
  text-align: center;
  padding: 10px;
}

footer .footer > p {
  margin: 0;
  padding: 0;
  font-size: 10px;
  color: #fff;
}
